sudo apt install qpdf

qpdf --decrypt <path-to-protected-filename>.pdf <path-to-newfilename>.pdf --password=<yourpassword> 
